import request from '@/utils/request'

export default {
  // 获得讲师列表
  getTeacherListPage(current, limit, teacherQuery) {
    return request({
      url: `/eduservice/teacher/page/${current}/${limit}`,
      method: 'post',
      data: teacherQuery
    })
  },
  deleteById(id) {
    return request({
      url: `/eduservice/teacher/deleteById/${id}`,
      method: 'delete'
    })
  },
  save(teacher) {
    return request({
      url: `/eduservice/teacher/save`,
      method: 'post',
      data: teacher
    })
  },
  update(teacher) {
    return request({
      url: `/eduservice/teacher/update`,
      method: 'post',
      data: teacher
    })
  },
  getById(id) {
    return request({
      url: `/eduservice/teacher/getById/${id}`,
      method: 'get'
    })
  }
}

